#ifndef _LED_H
#define _LED_H

#include "stm32f10x.h"
#include "io_bit.h"
#include "oled.h"
#include "key.h"
	
#define LED1_ON        		  (PBout(11)=1)
#define LED2_ON       		  (PBout(14)=1)
#define LED3_ON        		  (PAout(11)=1)
	
#define LED1_OFF      		  (PBout(11)=0)
#define LED2_OFF     		  (PBout(14)=0)
#define LED3_OFF      		  (PAout(11)=0)

#define LED1_OVERTURN         (GPIOB->ODR^=(1<<11))
#define LED2_OVERTURN         (GPIOB->ODR^=(1<<14))
#define LED3_OVERTURN         (GPIOA->ODR^=(1<<11))



extern u8 led_arrow_flag;

extern u8 oled_flag;
extern u8 arrow_flag;
extern u8 key_v;


void Led_Config(void);
void LED_Fun(void);

#endif

